package top.bulk.service.impl;

import org.springframework.stereotype.Service;
import top.bulk.entity.Order;
import top.bulk.mapper.db2.OrderMapper;
import top.bulk.service.OrderService;

import javax.annotation.Resource;
import java.util.List;

/**
 * impl
 *
 * @author 散装java
 * @version 1.0.0
 * @date 2025-02-16
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public void insert(Order order) {
        orderMapper.insert(order);
    }

    @Override
    public List<Order> queryListLatest() {
        return orderMapper.queryListLatest();
    }
}
